package net.aib.moneytracker.db.Interfaces;

import android.database.Cursor;

public interface IDBMoneyTracker {
	public long createCategory(String categoryName);
	public Cursor fetchCategory(long id);
	public void updateCategory(long id, String newCategoryName);
	public boolean deleteCategory(long id);
	public Cursor fetchCategories();
	
	public long createBuy(double amount, long id);
	public Cursor fetchBuy(long id);
	public void updateBuy(long id, double newAmount);
	public boolean deleteBuy(long id);
	public Cursor fetchBuys();
	public Cursor fetchBuysCategory(long categoryId);
	public Cursor fetchBuysCompany(long companyId);
	
	public long createCompany(String companyName);
	public Cursor fetchCompany(long id);
	public void updateCompany(long id, String newCompanyName);
	public boolean deleteCompany(long id);
	public Cursor fetchCompanies();
	public Cursor fetchCompanies(long categoryId);
	
	public void addBuyToCompany(long buyId, long companyId);
	public void addCompanyToCategory(long companyId, long categoryId);
	
	public void lowerAccount(double amount);
	public void addToAccount(double amount);
	public double getAccount();
}
